adding test for validation