Fix syntax-quoting .method in unit tests