WIP: Unit test for migration methods.

WIP DO NOT MERGE.

For discussion.

@bartv2 throws an error 'PDOException: SQLSTATE[HY000] [14] unable to open database file'