added some new test, changed ref to re-define from build.sh files