global: enhance unit test for LazyDict

* Add unit test for the class LazyDict.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
You can write alternatively `self.assertRaises(KeyError, lambda: lazy_dict['foo'])`