Reworked testing framework. Moved Tests out of the source file and started
on test automation.