fixed socket init on test page