fix test case on windows

"a:" is an absolute path, so viewedfile test cannot be run on it.