Use TEST bucket if the application is running in test mode
Add missing database files from test bucket
Merge branch 'test-bucket'