tests initialized on domready instead on window load