Automatic Gates Testing