fixes for tx definition
safer naming for module + new test
Merge pull request #1 from arnauddri/master

fixes for tx definition