Tests for compare