Fix union. Fix union tests.

Because it currently does not work at all. 
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33207&start=0