refactoring assertEquals and assertNotEquals