Add documentation for test lib functions.