Adding a test making sure failure case is handled OK