Add specs for Configuration#apply_environment!