sanitize input unit test