Fixed small bug in window tests