added persistence to tests