unit tests for player attack manager and refoctor common validation func...

...tionality into validation helper