added jasmine and few lifecycle event tests
Merge pull request #1 from pennyfx/tests

added jasmine and few lifecycle event tests