added DOMContentLoaded test