make test_unit_extension a common utility