Fixed a bug that did not allow for empty commands, and updated tests