Added unit test for 'this' preservation.