improve specs: check empty values and keys