Added a unit test project

Fixed the last comments, and rebased all the commits in one single message. First unit test  project using XUnit.