Hide internal data structure.
Added test case for Dictionary