- added doc comments to application (for type-hinting)
 - added a test to check that application registers itself as a response listener