Add tests for 404 device/connection routes