add set_hook test and add the OMFResource mother classes