added tests for buildXML of membership API