fixed test bug with do and end oops