Improvements in Scope inheritance

Issue #9
Added tests and remove deprecated function newSmallChild