Add test and sample using dmode and pillion