Tests added

Updated test to use all lifecycle methods