Adapted tests of assoc_struct to the type-deducing version of the ADAPT* macros.