fix task names for test
add deregister handle
fix to close targets, remove queries, and bugs of fieldset in referring