Remove more traces of the old API in tests

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>