Fix a failing tests which fails probably because of the move to .NET 4.5