Fix assertions in search test