Not sure if this is the best way of testing this case, but I didn't found any other way of checking if validator was called. Any ideas how this can be improved?