Minor bug fixes and unit test transactionalheapcache added.