test isPalindrome() in test program.