Add test, and fix addr rule dash to dash issue