removing unnecessary test purpose pieces of code