add unit test for WindowDataLayer