These tests are nearly all identical and it would be good to generalize them somewhat, at least for the error-handling logic.
These tests are nearly all identical and it would be good to generalize them somewhat, at least for the error-handling logic.