Memoizing simulator, bug fixes in egress and ingress.
Update the testing infrastructure.