Added code for testing AppMessage