Changed from if else to switch statement in character factory.
Removed test method.