test case for magic square