Added some test code that register as a listener
update to 0.2