Split apart tests.py into three files under the 'tests' directory.