test suite for portable lib