Moving tests into the tests.py file. Not has unittests and nosetests...
Adding some docs for the exception handling