Tests for devices API routes
Device API routes pass tests