Fix tests for the pear repository