added test, doc