test function for features