remove unused variables and simplify test to not cause unused variable warn

This name is not very descriptive, and I'm not sure PHPUnit will pick it up as there is no actual name.