fixed code quality issue and added test to ensure html report output would work