correctly assemble paths
split tests
check for existence of realpath