Switched back to argparse from OptionParser.
Removed unused tests.
Fixed a typo and made run-tests.py run all tests found under /tests/.