Avoid duplicated code in web profile test, and fix replies from Receiver class