add tests for Transaction and Script