Reimplemented unit tests for unsupported extension and context error

Added unit tests for unsupported extension and context error.