server: add tests for new functions