Test case for accepting object arguments