forktest with input