adding some unit tests for the dictionary