add regression test for set_inverse_instance on add_to_target