Unit tests are not a panacea. End-to-end tests are often much more useful. Some things cannot be tested at all. Think before testing.