add test code for event module and update Makefile. Everything works ok.