rtl_test: use static instead of global var

Signed-off-by: Steve Markgraf <steve@steve-m.de>