Expect a string or array used as callable
Adding tests for addObject method