test: dm: add tests for tag support