cleaned up tests.js