Fixed a test bug in the .net wrapper.