switch license
depen on R 3.1.0 and rm alternative grepl
switch to testthat