Moved some unit-tests to a new "tests" folder.

Changes needed to be made to all the makefiles to enable this change.