added referred_by column to users
Added Tests