Removed redundant function in test