added sendSync and enforced test coverage