added test scenario for cases when you have specified more attributes in the accompanying array than there are actual records.