Changed to throw new Error if decryption fails.
Continued playing with testacular and jasmine tests.