Fix JSHint complaints for tests

This fixes the JSHint complaints for the tests. So after this there should be almost no JSHint notices for the whole project anymore.

I suggest to only merge this after all the other pull requests in order to not get any merge conflicts for those.