Dev local package not working for test-specific dependencies

Let’s say there’re local packages PA, PB and PC. I can add PA to dependencies of PB using

(PB) pkg> dev /PA/local/path

and get tests worked. But since PA is a test specific dependencies, when I add PA to test-specific dependencies of PC, following document, using

(test) pkg> dev /PA/local/path

test failed with following error report:

ERROR: IOError: chmod: no such file or directory (ENOENT)
Stacktrace:
 [1] uv_error at .\libuv.jl:97 [inlined]
 [2] #chmod#21(::Bool, ::typeof(chmod), ::String, ::UInt16) at .\file.jl:888
 [3] chmod at .\file.jl:887 [inlined]
 [4] #rm#9(::Bool, ::Bool, ::typeof(rm), ::String) at .\file.jl:258
 [5] rm at .\file.jl:253 [inlined]
 [6] (::Pkg.Operations.var"#128#130"{String,String,Pkg.Operations.var"#132#133"{Bool,Nothing,Cmd,Cmd,Pkg.T
ypes.Context,Array{String,1},String,Pkg.Types.PackageSpec},String})() at D:\buildbot\worker\package_win64\
build\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:1291
 [7] with_temp_env(::Pkg.Operations.var"#128#130"{String,String,Pkg.Operations.var"#132#133"{Bool,Nothing,
Cmd,Cmd,Pkg.Types.Context,Array{String,1},String,Pkg.Types.PackageSpec},String}, ::String) at D:\buildbot\
worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:1237
 [8] (::Pkg.Operations.var"#127#129"{Pkg.Operations.var"#132#133"{Bool,Nothing,Cmd,Cmd,Pkg.Types.Context,A
rray{String,1},String,Pkg.Types.PackageSpec},Pkg.Types.Context,Pkg.Types.PackageSpec,String,String,String}
)(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:12
86
 [9] #mktempdir#18(::String, ::typeof(mktempdir), ::Pkg.Operations.var"#127#129"{Pkg.Operations.var"#132#1
33"{Bool,Nothing,Cmd,Cmd,Pkg.Types.Context,Array{String,1},String,Pkg.Types.PackageSpec},Pkg.Types.Context
,Pkg.Types.PackageSpec,String,String,String}, ::String) at .\file.jl:634
 [10] mktempdir(::Function, ::String) at .\file.jl:632 (repeats 2 times)
 [11] sandbox(::Function, ::Pkg.Types.Context, ::Pkg.Types.PackageSpec, ::String, ::String) at D:\buildbot
\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:1271
 [12] #test#131(::Bool, ::Nothing, ::Cmd, ::Cmd, ::typeof(Pkg.Operations.test), ::Pkg.Types.Context, ::Arr
ay{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src
\Operations.jl:1357
 [13] #test at .\none:0 [inlined]
 [14] #test#62(::Bool, ::Nothing, ::Cmd, ::Cmd, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{
(),Tuple{}}}, ::typeof(Pkg.API.test), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbo
t\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:253
 [15] test(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\buil
d\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:239
 [16] do_test!(::Dict{Symbol,Any}, ::Array{Pkg.Types.PackageSpec,1}, ::Dict{Symbol,Any}) at D:\buildbot\wo
rker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\REPLMode.jl:465
 [17] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Bas
e.invokelatest), ::Any, ::Any, ::Vararg{Any,N} where N) at .\essentials.jl:709
 [18] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at .\essentials.jl:708
 [19] do_cmd!(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at D:\buildbot\worker\package_win64\build\usr\s
hare\julia\stdlib\v1.3\Pkg\src\REPLMode.jl:412
 [20] #do_cmd#23(::Bool, ::typeof(Pkg.REPLMode.do_cmd), ::REPL.LineEditREPL, ::String) at D:\buildbot\work
er\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\REPLMode.jl:391
 [21] do_cmd at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\REPLMode.jl:387
 [inlined]
 [22] (::Pkg.REPLMode.var"#28#31"{REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base
.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib
\v1.3\Pkg\src\REPLMode.jl:619
 [23] #invokelatest#1 at .\essentials.jl:709 [inlined]
 [24] invokelatest at .\essentials.jl:708 [inlined]
 [25] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState
) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\LineEdit.jl:2306
 [26] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at D:\buildbot\worker\package_win64\build\u
sr\share\julia\stdlib\v1.3\REPL\src\REPL.jl:1045
 [27] run_repl(::REPL.AbstractREPL, ::Any) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdli
b\v1.3\REPL\src\REPL.jl:201
 [28] (::Base.var"#770#772"{Bool,Bool,Bool,Bool})(::Module) at .\client.jl:382
 [29] #invokelatest#1 at .\essentials.jl:709 [inlined]
 [30] invokelatest at .\essentials.jl:708 [inlined]
 [31] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at .\client.jl:366
 [32] exec_options(::Base.JLOptions) at .\client.jl:304
 [33] _start() at .\client.jl:460

How can I fix it? I use Julia 1.3.1 on Windows 10.