Add test, and fix bugs: Ball.