Add test for getGender.

This test shows how to set up a test with xml so that the methods that
take xml structs can be tested.