Fixed a test to work with .net 3.5