As this is related to tests it could be moved to baseapi.