Unittest helper function: symmetric random matrix