Reorganize tests

This will make it easier to update tests within a QB app while
preserving the configuration specific to that QB app.
Add count method