fixed get_anonymous_parameters and added test