Update tests to use the new api_spawn function