Building tests. Debugging.
Work in progress. debugging.
Fixes bugs in extend session order relation