1.add test code for likelihood calculation