fixed failing async tests and added first tests for AsyncTest. All tests run in a NodeJS environment