Added tests for receiving incoming emails