Updated the sanity tests to have a sleep period during which error responses are considered as Okay situation.