Update code
Add test for constants
Add test for ui_device