Investigation of bad smells and refactorings for automated end-to-end tests