Added a subcommand `test-ann-batch` for testing classfication by hierarchy

It uses the classification hierarchy to perform classification on samples from test data. Each classification is compared to the expected result, and results are exported to a file. Some code cleanup was done as well, and a new custom exception was added.