@Col Welcome to the community
You can try this way:
pm.test("Status code is 202 " + pm.environment.get("OUTPUT"), function () {
pm.response.to.have.status(202);
});
Change the scope of the variable you have used, if its not environmental variable. Please let me know if you have any issues