Liverpool City Council and two of its contractors have been prosecuted following two separate incidents involving roadworks on a busy city centre road.