added tests for transmit api