Document and optimize tests.

Saves some time.