updated main to have a test delay to deal with zylin debugger quirks