Fixed test for equal() function with enums