fixed docs, added testcase