added tests for isEqual