fixed material and matquery tests