added some tests

Added tests for `context_error` and `unsupported_extension`.