Test of quantum gravity in statistical mechanics