Add integration tests for validate