potter kata with tests(failing for edge case)