Increase test coverage for main.py