Fix port used for rest api on tests