Specified events order in arrays and added tests on it