Added functional test for CustomObject metadata type