refactor test for push notifications and add new CustomHttpCode