A nonparametric test for path dependence in discrete panel data