Add test to verify that an exception is thrown if executing queries inside failed transaction