Added support for coverage report.
Added more unittest. Changes according to REST spec.