adds tests and db migration for users