added device.key filter and test endpoint