added test that confirms that nested retry works, closes #4