Created test.js file to alloc tests