Add unit test for heat_local

For improving test coverage, this patch adds unit test for heat_local.

Change-Id: I000a73d8c54b5bb9c506d8674fbd963fed72e8f3
Merge "Add unit test for heat_local"