encode simple values, first tests