adds index to testLayout