Unit test for forktest