Adding thread safety test for key store