added test and warrior class