add test case for direct nested schema