test code for cog_selector