Fix logger and mock usage in specs
[migrations] Running migration task