Test framework for UI + SQL tests

@nockertsb please review
Is there a reason for not using Timber here? And for that matter do we really need to be logging stuff in the tests?