Added test case for device code generator