fixed unique path detection and last of test problems