Fixed (and added tests for) retry() method
1.2.1