fix bug for testcase and regular the code for towereAOI.js