Fix the column name for the foreign key
Add some test for the user model