hardened the getContext override and added a new test