[PATCH v1 12/14] lib: add support for device public type in test_hmm