Add test for ByFrameSolver.for_directed_motion and directed_motion_trajs_df in data module