Test querying on Memory with inheritance, with instance methods