New functions added for tests