add check for uri to error tset