added unit test to cover a complete 'user defined object' loop