Added tests for gc callbacks.