adding more tests for result() and union()