fix warnings

by removing unused imports
rename test to match the function it tests