Move part of mjcall.jl on test.jl