Reintroduced the NL gradient test before the bug
Reintroduced final data instead final() method

in Trajectory class