palindrome test fleshed out