add tests for lifecycle callback array stack. closes #33