I would recommend breaking each one of these cases out into a separate case. Using looping constructs like this in tests can make it difficult to tell what the issue is when things break (i.e. if there is an issue with `image/ico` but not others) -- you'll get a failing case with a line number but it won't directly point to the input that produced the failure.