add tests for mp4 and fix bug