A Solution to Boundary and Sign Problems of Unit Root Test