Fix = (assignment) for == (equality)

Looks like there was just a typo here, causing the test to fail in the 1-device case.