Add a test

addLifecycleCallback now only allows a callback once so we do not hook them twice