Removing redundant commands from the test