Minor improvements to tests and apidocs

Signed-off-by: Ken Barber <ken@bob.sh>