autotests: replace member with local scoped pointer
Ensures full independence between test methods and fixes leaks on failure (just in case it would matter).