tests: add base_gen_redef.nit

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