Fix test cache image test fails

Thanks @devisnik for pointing out the redundancy