add tests for devices and votes