rename testcases and factor out test for chaning image data
flake 8