Fixed broken 'gradle test' run. Introduced cpLibs shared task.