Modified the soldier class to be able to test invalid argument.