fixed typo in doc
added testthat as suggests