Test to next_palindrome function