Moved all non-test code from the Tests project to the Code project