Port crypto_test.js to cryptoSpec.js
Convert tests for events, global, os and process to jasmine specs.