Added a test to verify the ability to create indexes with fields in a struct