Add missing tests in test_loggamma(), see issue 2317
Merge pull request #1986 from skirpichev/2317-loggamma-tests

Add missing tests in test_loggamma(), see issue 2317