Tests added for Issue #271; device parsing added as well