Add more tests around processMessage logic.