Updated test script

Updated test script to be more modular, and include tests for the
Mt. Gox API