Fixing :test and :api_key as parameter overwritte