Adds context tests.
Merge pull request #64 from jmeas/context-tests

Adds context tests.