Adding unit test for cog-execute