Made some tests in test.js