changed tests, added reason check to fork.c