supported asserting before running
improved js output
added async test sample