dictionary service and tests