move some test from mod-lang to api.

have passed on my mac. hope work fine on your.