Tests for evaluation of loggamma function