removed the onDestroy method as it was added for test purposes