Fixed documentation typo
Added tests