Fix should.js usage error

Fix assertion error in global shortcut test case.