test structure of objects received from database