Fixes hint errors in tests/ directory r=kgrandon