add test for encrypted device

It is actually already fixed, so I just add test to prevent regression in future.
Frankly, I don't get why number is sometimes "system" and sometimes a real number