Generics are tested using testthat package