Updating tests cases.
Add unit tests for core/lang
Migrate global functionality to separate module.