test for referencing this in function