Fix deprecation warnings + improve model state cleanup betwen tests
Remove deprecation warnings + use test-specific model class names to avoid issues caused by different tests stepping on each other's toes by messing with test models
Fix with_remapped_databases in multi-threaded environments