Updated the test script to check for errors in the "devices" section