* Error messages improved * Configurable for different mock devices Note: Backport 645592e157e3523117fd833283559e2bbfd8e63f to v4.4 without migrating to pytest.