Fixed confusion between test mode and sandbox environment