Added tests for code examples in the documentation.