Random 3d space testing