Added unit test for registration form input filter