Test to previous_palindrome function