For debian you can install pgtag :
# sudo aptitude install pgtap
then create the test schema and install the lib :
# sudo -u postgres psql darwin2 -c "CREATE SCHEMA unittest" # sudo -u postgres psql darwin2 -c "CREATE EXTENSION pgtap"