Unit test showing array assignment problem on gcc 4.9