fix retry decorator, providing tests
travis unit testing