remove console.log and fix bug in search page refs #165
modify test to check the number of appended messages