fixed broken test- wrong index when loading trajectory