Fixes and improvements in PhantomJsTest AST