built a test for database save/load