JCR-2768 added test to check if logout is called by garbage collection