Updated getContext to 4.3 standards and added tests