Add non-transactional test

Queries were completely broken outside of transactions for a while
without me realizing.