test/dma: fix missing checks for device capacity