Add end_columns stub
Complete end_columns test cases
Fix memory leaks in test cases