finished migrates and unit tests for it