Added unit tests for persistent stores.

Signed-off-by: Bennie Leonard <bennie.leonard@gmail.com>