Added deallocation test.