Added extra test for lifetime
Data directory is now normalized before is_dir check
Fixed json storage