Test race conditions on web apps