[PATCH 4/4] test: lib: add test for key derivation