Add util tests

Also updated the mergeObjects() method to handle arbitrary numbers of arguments.

@lmorduch: Please review.