Autodetector tests
Auto-naming for migrations and some writer fixes