fixed a tests difference between .NET 3.5 and up