Fork for unit test