Database integration tests

- Added missing tests for account administration privileges.
- Cleaned up database integration tests.