Added unit tests for initialization