Docs updated with test cases.