added basic tests for compare