Add test cases for checking this object passed to each test function.
Fix a problem with this object passed to each expanded test function.
Merge branch 'feature-fix-this-in-test-function'