fix nuget package

I have fixed package nuget and add integration test.
Several constructors are a pain. Consider using a method factory to tell about intention.