Malliavin calculus for generalized and test stochastic processes