Fix typo; Add tests for docs