Adding test to verify the fix for issue 1246 which has been addressed by the previous checkin https://aspnetwebstack.codeplex.com/SourceControl/changeset/3d401b11e23ffad9b190e21cf7b6a1c045087b5b