added jasmine and few lifecycle event tests