Optical manufacturing and testing