applied patch
fix tests
integrate with destructor
use random for aliases and invalid path