Test to is_palindrome function