Large-scale non-Gaussian mass function and halo bias: tests on N-body simulations