updates to tests.js