dm: core: Run tests with both livetree and flat tree