Tests for bernfrac and factorial