add test case for cloned union querys