index for test response and add attr type and data in class response