adding first test for agent shutdown