NXP-14930 fix bug getEntry directoryCache
NXP-14930 improve unit test on directory cache