Fixing js tests

See commit details for EventHubTest.js relating to #354