User upgrade tests

Added tests for the user migration stuff