Fix test
Add support for local compiler
Fix async issues