Shift test suite to sims.py and allow test suite to be runned directly from command line.

Also, add in `doctest` which we should make use of soon.