added tests to check for proper event ordering.