add tests for category scoping functionality

- fix a couple bugs in the process
- test cases for overrides and skipping categories as well