JSON tests
Some fixes to async test base