Fix forking test to not run on some platforms
Fix warning in test