Fix typos in start_capability service

My previous PR had two typos in it that I didn't notice because it only causes problems if a capability is started while a previous instance of it is in the process of stopping. This PR fixes those typos, and adds tests to catch this case.