A test circuit can test a status of a group of non-volatile elements. The apparatus comprises a classification engine, a meter engine, and a copy engine. For example, the grating may reflect incident light back into an input fiber, where the back-reflected light may be detected.