tests for __eq__ method of Factor class