Fixed sync issues + added transport level security tests