Added define methods contexts tests
fixed jshint #959
Merge pull request #961 from bitovi/whitecolor-define-contexts-test

Define contexts test