before testing placement of CheckRequiredAttributes function