Add sanity check to tests of sub-form object type