Added `clearAllData` test function that truncates some tables

This will allow for faster reindexAll operations and should reduce some
of the load during Travis tests

There's no need to review this yet. I want to see if this has any impact on the instability of our tests.