Improve test framework

This fixes #122, makes it possible to change the jid that's applied to commands made from unittests and allows passing `block=False` to `popMessage()`