server: add missing tests for pagination and search endpoints

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>