Fix Dll variable assigment in Init(). Implements all tests for all implemented func