Writing Node lifecycle tests.