Change no-ref-loss test as suggested by Tobie

See https://github.com/tobie/specref/pull/113/files#r15924848