cleaned up whitelist test, put inspect import inside _make_signature definition