This test fails on OSX (10.9.2 anyway) with the difference in window sizes only being [10,10] -- it appears that if the size difference between current and maximized isn't large enough nothing actually happens (same happens manually doing it on the desktop as well as programmatically) - if you change the difference to [100,100] then the test passes