Fixed context label for tomo.
Fixed extenion test for case.
Refactored to reduce dependency on GDA GPL - still a lot here though.