added test project and nuget spec
more tests
Merge pull request #1 from phillip-haydon/Tests

Adding unit tests and fixing broken code found by test