Functional test for validation