made test.js async
made all existing tests async