Add a test task for the lib/ directory and configure coverage for it