Remove redundant code, add Sphere test examples.