format according spark code style, and add window cluster(window <name> as) test case.