Fixed bug in unittests.c
fixed bugs in istrchr and indentation