add test case for sub class of schema