IRCD Server simulator simulates an IRC server on your localhost with fake users , fake channels and fake chat.
It helped me spot a lot of bugs.
This is the link http://colinjs.com/software.htm#t_IRCDSS
thanks to the guy ( forgot his nick ) on #freenode who gave me the tip