Add a dedicated test class for generated tests.

Also, update API documentation.