Functions test/typeII for both Bernoulli and Nonstandardized test