added tests for reset and update mechanism.
new sjcl.js