changing test to be standalone
added 3 window test and some SwapInterval stuff