fixed "Show View" problem
added test case