fixed the print_spec to handle async testing