arrange javascript tests for result events