Removed unused function in tests