Split up long test suite into multiple test case modules.
Fix import and some pep8.
Merge pull request #4 from oubiwann/split-tests

Split tests