Test tools.apply_to_func, get rid of apply_to_action_func