This seems to only be used in tests