documentation fixes; extra tests