Uses a copy of the input trajs in the solver
Fix tests for #4