Fix wrong expected exception message test
when context is accessed from outside a goal