Tests: Written tests for key events stack.