Added script bit to test and removed coded path

A minor modification to the recently merged #1086. This PR adds the if __name__ bit so the test can be run directly and also removes the path tuple as the test suite can automatically find the result file.