Split core/tests.py into a package.
#46 added formatter.
#46 nit fixes.