ticket:5 image upload test refactoring