Fixed test for changing pattern class to constant class