Added test cases for coverage.