adding helper methods for removing the use of timeouts in case of multiple asserts in asynchrounous code, also adding tests for restore feature #5111586942243