added tests for StorageSelectionActivity, fixed bugs if database is read-only, no edit buttons are displayed