The ControllerTest::testEdit() method fails when trying to post the edit form. The controller fails reporting that the ScheduledCommand entity does not exist in the database, it did when calling the edit end point to get the edit form in the first place.