Added unit test for union and difference.