Revert "Improve Components inflate function, close #130"

This reverts commit 3a9aa3e3677eba733f9124e51aeeb5bfe55f8dbf.
Create more test cases for events module