fixed the ajax_spec + test_config_spec to handle async testing