added unit tests for the Dictionary class