remove 'back' in 'EventQueue'; fix an invalid testing in 'scan'; fixed a edge index judge in event_test