test fixage
session can be nil
Fixing bug with nil being return in ns trail