gs.test function

Internal function for gene set testing.