TST: logsumexp regression test

see https://github.com/scipy/scipy/issues/4014