Small improvements to documentation.
Fix warning for test function not correctly returning.