Add test package and reformat the code.