Fixed incorrect search path for packages
Bumped nuget patch
Added test script, better error handling