This looks like a utility function that is only useful for testing.  Is this the case?