Add test for garbage collector refcount method and optimize it
Add tests for collect and fix the behaviour