Adding tests for compare