added more tests to characterTest and added nullpointerChecks in character