Fix tests.js