Perhaps add a test case for the error condition where one or more of the values are not an object?