Add environment-values related functions, definitions and tests