Add tests and helper function for full attack bonus calculator