add test script for function check.