Added tests for incoming presence. Fixes #1x