Debugged infobox tools and added tests