dictionary tests

add tests for dictionary