[fix bug 896961] Add base JS unit tests for bedrock global.js