test trajectories phase 1

made some test scenerios and handling unhandled exceptions