minor unittests fixes

Signed-off-by: Pierre Tardy <tardyp@gmail.com>