improved test_feature_function