fix calculate damage test