[test] Use the new constructors in the test.

In testing, I has used a different testing routine.
Of course, the standard test, shouldnt use a deprecated
constructor.