Fixing code coverage