added length checks on dictionary objects tests