[server][testUtils] Add an assertion when a wrong tag is passed.