test support function move to support.js as test lib.