Modifying tests to run in both in aspnet50 and aspnetcore50

* Additionally trimming references from project.json
The exception type and message that was tested for this code path is different between CoreCLR & CLR. Regardless, it seemed like the right thing to do to throw an exception with an inner exception rather than print out the message as part of the thrown exception.