Add tests for overlapping contexts
Merge pull request #197 from andrewblack/master

Test for overlapping and non overlaping contexts