fixed missing code that's failing test :D
updated testPath
improved random path building