Fixes and refactoring of APN send message web service test harness