feat(tests): async tests

Introduces the async() API for tests and updates http_spec.dart to use it as an example.