Rewrited a few methods for REST API tests.