added unit test for deep equal