small refactoring
add unit test framework
add unit tests for invalid handle creation
small adjustment to VS project file