Added mailing tests to the .net api wrapper.