Move events tests to its own file.