tests: update error_needed_method for niti

Signed-off-by: Jean Privat <jean@pryen.org>