A nonparametric test for poolability using panel data