Moved tests towards compliance with new ctx style

Not complete, involves defining __repr__ for Exec contexts, as it comes up in
many places.