asynchronous getPathsAsync method + some bugs in tests
prepared async + tests [skip ci]