Added unit test for device

got some lua environment problem