Test for NrvMemoryProtocol and a new test utility FunctionalMatcher