fix test case for non-root