Setup the testing environment
Update some bugs on migrations