added tests for recovery