label is never added to the window. The test creates a proxy and reads value back, is that the purpose of the test . If so, why do we need a window ?