[DO NOT MERGE] Fix broken tests

- Make sure test's #api_call block is invoked even when the API_DOCS
environment variable is not set.
- Allow tests to write theirs docs without expecting the framework to tell
it when to read and write.