fix jensenshannon implementations and tests