add test cases for label pruner
add error for no path found