Add test for defining complex schema.