added tests.js