adding sleep for test an error on container creation
refactoring tests
redis waits until container is ready
fix pep8