fixed bug caused by changing garbageCollectionEnabled type
added test to check if we handle the broken dependencies