Extract transaction checking

Makes it easier to stub it when this check is not needed (e.g. in tests)
Merge pull request #33 from iNecas/extract-check-transaction

Extract transaction checking