Insert logging data and test code to intergrate test between system and device