Made the test script work and tested it.