Added tests to improve code coverage in the cog compiler.