fixed the root_spec to handle async testing