test-utils: resource utils improvement, tests

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>