update compile script, add test output