Fixing errors in user spec