Use assert.EqualError instead of assert.Equal