Add tests for command-line argument validation

Add tests for the command-line validation done using the Trollop
library.