Convert tests project to regular class library project type so it might work on xamarin studio

Also might fix the appveyor issues
add NuGet package restore