Remove useless local variable

Signed-off-by: chatgris <jboyer@af83.com>
Fix tests

Signed-off-by: chatgris <jboyer@af83.com>