Modifying tests to run in both in aspnet50 and aspnetcore50

* Additionally trimming references from project.json
Matching the declaration of `spinWait` at - https://github.com/aspnet/Razor/pull/197/files#diff-aaabff2a44d94a4b87c213caba75db0cL312