tests for nested validation