removes the pwd from test