Fix test cache image test fails

@blundell