add unit test for validation params