Added new tests

Added tests for window, stats, group by, and formula