Make test_* scripts run directly

Test scripts ran correctly when called using the `nosetests` script of nose, but when run directly with python, no tests were executed. Fixes #27.