Added new tests for the getMidiEvents method