remove test.db, set save dir for test.db to test
coding style, cleanup of 1ed2239