Change unset to take an array as default, added tests when pass parameters as array or object