Currently we use `expectError` which does not check for any particular error, but we should check for the specific error that we expect