Add tests to ensure the slave gets stopped.