fixed REST API tests