Removed unused function before from tests