Added more tests and a regression for empty commands