Prune unnecessary branches and add tests to reach coverage goals.