Added generation of coverage data if testing is enabled