Seg fault occurred due to some memory corruption that occurs on both linux and windows, this needs fixing inorder to complete the tests.