update redeem function with new test script, redeem test is functionaly removed. If there's any way easier testing code, I want it back.