enhancements to allow multiple test passes (e.g. with expectations). Nulls out the EAV config singleton after cleaning the attributes from the database. Also resets the autoincrement value on the tables and runs appropriate indexing
correct variable naming per @IvanChepurnyi and adding some attribution