Implemented make_tx, moved tests to tests/