Fixed single files and folders shares. Fixed tests.