Fix unittest for line coverage automation