Fix test code on VS2010

Please verify this doesn't break Dev11 or Dev12...