More refactor
More test for imx_device