Fixing errors relating to the use of live/test keys.