fix restapi 1.0 functests

This fix is in total contradiction with DRY principles. We definitely
need to either get rid of REST API 1.0 or change the functests to
remove code duplication.