unit tests for Thanks extension

Change-Id: I6ec2edf62b994da818f9a579e60e602d943dc1b5