Added all tests and sender.go bugfixes