test-dpi: Add test functions