flushing changes at the end of a transactional test