copying some tests from GLM to GBM