codes responses + fixes test script