Added unit test for debug arena and fixed error with back bounds
checking