added test for compare