user migration model and tests