Add tests for keystone.v2.js

  Unit test for all the implemented functions in keystone.v2.js
  Also add a section in sample which has keystone injected.