unit tests for runner. async option added so that tests can run in async=false mode. default is async=true.