added unit tests for dictionary