adapt lifecycle listener tests to work for RDBMS and non-RDBMS
(different order of events due to backing stores being used).