Fix for issue #2085. Use "mobile: reset" in beforeEach().
Use contexts for switching native/web
package update + test fixes