Issue #2345733 follow-up: adding QUnit tests for goal sending