Bug 974319 - MockDOMRequest and fix deviceStorage tests with setTimeout()