Test sphere generation code.