Fix test suite.

- Use a different database name for CacheTest to prevent conflicts with the rest of the test suite.
- Removed manually setting id column for test models.
  - This inherently tests the default ID column name as well.
- Formatting, spacing and organized imports.