fixed test case not initializing memory