Separated the core of the unit tester into its own source file.