A semi-analytical model for productivity testing of complex well configurations