adding tests for add_defaults_to_specs