fix unit test: broken equals statement