Improve code coverage, mark with ExcludeFromCodeCoverageAttribute code which cannot be tested, remove code that isn't being used