improved lib/source test