refactored operation setup to use as_instance_method
added tests for automigrations migration string
made tests run for automigration source code