Unittests

I have implemented the first three unittests and some commandline code for the unittest module. Let me know what you think of the structure. I'm a litle new to github, but I will try to  figure out how to link to this pull request in the issue.