remove kad_net files
fix switch/case style
fix the style of test codes