refactored transactionscript spec to be modular and to be used in all other transactio script specs