xnet: less couting, and a unit test for BallCamera