got line coverage working, fixed tests to be covered as much as possible

todo:
-setup gprof?
-setup jenkins