add temporaryDefinition() tests