Adds test for shadowed this variables. Closes #361.