add unique paths and its test