Added unit tests, fixed an unnecessary console.log in summary.html