Improved event creation and adding commands to the command queue. Runtime tests separated to their own tests