Fixed memory deallocation in unit test. Added coverage report generation.