added new tests to test.js