global: enhance unit test for LazyDict

* Add unit test for the class LazyDict.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
@hachreak Can you try to remove `nose` dependency by using `self.assertRaises`?