add save movie functions and test them