first implementation of TestWindow