Split core/tests.py into a package.