Update migration.test.js

Global leak error triggered because of missing var in line ported from coffeescript.