Remove unused app variables from the tests
Merge pull request #4047 from GrahamCampbell/4.1-unusedapp

[4.1] [Minor] Micro-Optimisation In Tests