Fixed possibly uninitialised variable.
Added tests for mapping iRODS paths to local paths and parsing replicate
numbers.