Fixing aniamtions with frame_direction=-1 and adding a test for it