Added unit test for likelihood.