add a condition to avoid JetNullPointerException
define type of dictionary attribute
update examples and tests