Fixed confusion between test mode and sandbox environment

Pull request updated from #268 (by jmwohl).

Added a typo fix on the class name, and a notice fix caused by currency variable missing.