Update mapper.php

Tests adapted to the proposal of new lib/files/mapper.php. Added two checks "foldername and filename with periods" and "foldername and filename with periods and spaces"