test for compare