Added test and longest palindrome method)