functional palidrome checker with tests on PalindromeChecker class