Add test script and and fix local limit.