tests adapted to new API as well

Signed-off-by: Christian Lüthold <biocodr@gmail.com>