testing gamma function