add runtests.jl & fixed some tests