Add unit test for using S(Q,w)

Refs #10410
Merge branch 'bugfix/10410_elasticwindow_algo_should_support_sqw' into develop