Bug 1112515 - Add unit tests for hawk.js