unit tests and fix API for Arena

Note : I don't have time to play a full Arena run, so I reproduced the problem with unit tests. Please wait for a real test before releasing ;-)