Add test case for 'this' used in parameter

Fixes a gap in the test suite.