Extend assert_command to support repeated checks

Modify the assert_command (and expect_command) checks of unittest to
accept repeated -s, -o and -e flags.