Test memory comparing with known stored valid memory states