api/auth/key_test: refactor monolithic test into smaller tests with closures
api/v0/v0_test: add tests for default behaviors of all configured APIv0 endpoints