Improved key derivation tests.