Yeah, expected comment :)
I already tried to convert these loops to a common function, but it doesn't work. Since in `case` test constants are not evaluated, so I can' t pass the status messages as parameters.