added test for onload being called, as well as multiple local overlapping calls in async mode