test/lib: add process tests