Various unit, api, protocol and performance tests