added heart base test code