added tests for dictionary