Test some of the improved error handling cases