fix failing unittest when all RESTAPI tests are run