Adding unit tests

I started adding unit tests and the first step was to organize the test directory. I renamed it to "tests" and put "system" and "unit" sub directories inside.