Added additional unit tests, fixed bugs

Added additional cases for Engine.Process with additional options.
Fixed bug with subcategories.