Fix test case that should throw an exception  (should.fail did not work)