Just an idea. Could we add a checkRequest or something like that receiving the error name to test because I am reading several times the same code. What do you think?