moving to async method for src/testing.ts, refs #243