split up tests into individual methods
pep8 changes
reorder tests for reading flow
move to unit test directory
added tests for error cases