Fixed broken MKV playback broken by random access files, added tests