test_advanced_image_processing: Added test for generate_dictionary from advanced_image_processing. This fixes #135.