common: add test for empty val