Strong approximations for the p-fold integrated empirical process with applications to statistical tests