test whether LogLikelihood is method

A fix to issue #47