Reject failed invocation with a single JS object representing HubException

#2376
Simplified setup for functional tests with detailed errors disabled