Move this into the tests? I don't think it's a plausible implementation.