Fix to users test SQL