test empty path
refactor some tests