add test case for writing multiple frames at the same time