Adding unit test for Scene, fixing recycle bug