Fixed some bugs in LogicData unit test. Tested through a main function because my VS doesnt support unit testing.
Test cases are successful.