Add missing tests for onMediaEnd and onPlayIndex