setting up database persitence test for settings. Event aggregation and result emmission is working