Fix for test to expect te correct error.