updated to testhat 0.8
fixed notes and warnings and ref in forword