Optimized the tests to reach 100% coverage.