Fixes the commands test to actually make correct use of the automation stack instead of just blindly throwing commands at the server and hoping for the best.