Fix poorly written test (sorry).

- test was using obsolete methods, leading to a failed build in Release mode, because of the unit test was failing.