The inclusion of tensor terms in the nonrelativistic nuclear energy density functionals