more coverage and fix empty path