Create a function for DEC test