Fix some bugs and test three processes