no need for this `if test ... ` logic. same logic for test and prod should be fine.