More unit tests for util

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>