add test portable library